package gl.android.jxzs.bean;

import java.util.ArrayList;
import java.util.List;

import android.text.TextUtils;

import com.google.gson.annotations.Expose;

public class ImageResult {

	@Expose
	private String code;
	@Expose
	private String desc;
	@Expose
	private int total;
	@Expose
	private String expandname;

	@Expose
	private String expandurl;

	public String getExpandname() {
		return expandname;
	}

	public void setExpandname(String expandname) {
		this.expandname = expandname;
	}

	public String getExpandurl() {
		return expandurl;
	}

	public void setExpandurl(String expandurl) {
		this.expandurl = expandurl;
	}

	@Expose
	private List<ImageRow> rows = new ArrayList<ImageRow>();

	public boolean isValue() {
		if ("0".equals(code)) {
			return true;
		}
		if (!TextUtils.isEmpty(desc)) {
			return false;
		}
		return false;
	}

	/**
	 * 
	 * @return The code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * 
	 * @param code
	 *            The code
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * 
	 * @return The desc
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * 
	 * @param desc
	 *            The desc
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}

	/**
	 * 
	 * @return The total
	 */
	public int getTotal() {
		return total;
	}

	/**
	 * 
	 * @param total
	 *            The total
	 */
	public void setTotal(int total) {
		this.total = total;
	}

	/**
	 * 
	 * @return The rows
	 */
	public List<ImageRow> getRows() {
		return rows;
	}

	/**
	 * 
	 * @param rows
	 *            The rows
	 */
	public void setRows(List<ImageRow> rows) {
		this.rows = rows;
	}

}